#if !defined(AFX_CHESSBOARD_H__14E4F7D8_0D11_4A38_B6AD_134EF92A64F7__INCLUDED_)
#define AFX_CHESSBOARD_H__14E4F7D8_0D11_4A38_B6AD_134EF92A64F7__INCLUDED_

#include "ClientSocket.h"	// Added by ClassView
#include "eveluation.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// chessboard.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// chessboard frame
class CFivechessDlg;


class chessboard : public CWnd
{
	DECLARE_DYNCREATE(chessboard)
public:

// protected constructor used by dynamic creation

// Attributes
	chessboard();
public:

   chesstruct chessobject;

// Operations
public:
	void Create(CWnd *pParentWnd, UINT nID,CFivechessDlg* pCFivechessDlg);
	CFivechessDlg* pCFivechessDlg;
   

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(chessboard)
	//}}AFX_VIRTUAL

// Implementation
public:
	void transmeto(chesstruct Pchesstruct,chesstruct& aa);
	CEveluation eva;
	
	void computer(int* a,int* b,chesstruct chess,int sever);
	void autogo();
	void TomyReceive(char X,char Y);
	
	void ifgameover(chesstruct* pchess);
	void gameover(int win,chesstruct* pchess);
//	int whogo;
	CBitmap bitchessboard,bitblack,bitwhite;
	virtual ~chessboard();

	// Generated message map functions
	//{{AFX_MSG(chessboard)
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHESSBOARD_H__14E4F7D8_0D11_4A38_B6AD_134EF92A64F7__INCLUDED_)
